package org.feng.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * 角色菜单权限表
 *
 * @author : FengShuai
 * @since : 2024/6/27 9:24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_menu_role")
@Schema(name = "角色菜单权限表")
public class SysMenuRole extends Model<SysMenuRole> implements Serializable {

    private static final long serialVersionUID = 1L;
    @Schema(title = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    @Schema(title = "角色id")
    private Long roleId;
    @Schema(title = "菜单id")
    private Long menuId;
}
